// 定义角色对象类型
export interface Role {
  id: number;
  name: string;
  avatar_url: string;
  description: string;
  update_at: string;
}

// 定义会话对象类型
export interface ChatSession {
  SessionId: string;
  RoleId: number;
  RoleName: string;
  RoleAvatarUrl: string;
  isActive: boolean;
  userId: number;
  createTime: string;
  updateTime: string;
  Role: Role;
}

// 定义会话消息类型
export interface ChatMessage {
  id: string;
  role: "user" | "character"; // 根据实际情况调整role的可能值
  content: string;
  chatId: string;
  createdAt: string;
  imgUrl: string[] | null;
  fileContent:
    | {
        fileId: string;
        fileName: string;
      }[]
    | null;
}
